﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MotaWeb.Models;
using MotaWeb.Models.Interfaces;
using System.Web.Mvc;
using System.Diagnostics;

namespace MotaWeb.Controllers
{
    public class MotaControllerBase : Controller
    {

        #region Constructions
        public MotaControllerBase() : this(new MotaRepository())
        {
            Debug.WriteLine("Empty constructor called");
        }

        public MotaControllerBase(IMotaWebRepository repository)
        {
            Repository = repository;
            Debug.WriteLine("Repos constructor called");
        }
        #endregion

        #region Properties
        public IMotaWebRepository Repository { get; set; }
        #endregion
    }
}
